Skip to content

Conversation

CEikermann
Copy link

@CEikermann CEikermann commented Jun 26, 2025

Description

Fixes the API error 400 when disabling the EKS Auto Mode

Motivation and Context

When disabling the EKS Auto Mode, the AWS API is returning with a 400 error

│ Error: updating EKS Cluster (***) compute config: operation error EKS: UpdateClusterConfig, https response error StatusCode: 400, RequestID: 2a4498b9-8469-42e8-8712-b22c5a5930b2, InvalidParameterException: The type for cluster update was not provided.
│
│   with module.eks_cluster1.aws_eks_cluster.this[0],
│   on .terraform/stage/modules/eks_cluster1/main.tf line 35, in resource "aws_eks_cluster" "this":
│   35: resource "aws_eks_cluster" "this" {

Pending change from terroform apply:

  # module.eks_cluster1.aws_eks_cluster.this[0] will be updated in-place
  ~ resource "aws_eks_cluster" "this" {
        id                            = "stage-cluster1"
        name                          = "stage-cluster1"
        tags                          = {
            "terraform-aws-modules" = "eks"
        }
        # (12 unchanged attributes hidden)

      - storage_config {
          - block_storage {
              - enabled = false -> null
            }
        }

        # (7 unchanged blocks hidden)
    }

Looks like the change back to null is causing the API error 400, if its always set to false it works as intended

Breaking Changes

Should not, as its the same approach like in compute_config

How Has This Been Tested?

  • Create a cluster with EKS Auto Mode enabled
  • Disable the EKS Auto mode

@CEikermann CEikermann changed the title Fix API error when disabling EKS Auto Mode fix: API error when disabling EKS Auto Mode Jun 26, 2025
@bryantbiggs
Copy link
Member

thank you but this is not correct

@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 27, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants